package cn.credit.loan.service.user;

import cn.credit.loan.entity.User;

public interface UserService {
	/**
	 * 用户登录
	 * @param userName
	 * @param userPassword
	 * @return
	 */
	public User userlogin(String userphone) throws Exception;
	
	/**
	 * 用户注册登录账号
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public Boolean addUser(User user) throws Exception;
	
	/**
	 * 修改用户密码
	 * @return
	 */
	public Boolean updateUserBypwd(User user)throws Exception ;
	
	/**
	 * 用户删除
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public boolean deleteUser(int userId)throws Exception;
}
